﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Common.Common;
using ZBJF.Warranty.Common.Enums.InsuranceWarranty;
using ZBJF.Warranty.Common.Enums.System;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.InsuranceWarranty;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IUploadFilesService
    {
        /// <summary>
        /// 上传的文件
        /// </summary>
        /// <param name="fileBelongTableName"></param>
        /// <param name="fileBelongTablePKID"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        UploadFiles Load(NeedUploadFileDataTableEnums fileBelongTableName, long fileBelongTablePKID, string fileName);
        /// <summary>
        /// 已经存在就重命名
        /// </summary>
        /// <param name="fileBelongTableName"></param>
        /// <param name="fileBelongTablePKID"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        bool Exist(NeedUploadFileDataTableEnums fileBelongTableName, long fileBelongTablePKID, string fileName);

        IQueryable<UploadFiles> GetFiles(NeedUploadFileDataTableEnums fileBelongTableName, long fileBelongTablePKID);
    }
}
